package java面向对象.内部类.静态内部类;
//只能访问外部类的静态成员
public class Text {
    public static void main(String[] args) {
        Outer.inner in=new Outer.inner();
        in.show();
        Outer.inner.method(new Outer());
    }
}
class Outer{
   static private int num=10;
    static class inner{
        public void show(){
            System.out.println("只能访问外部类的静态成员");
        }
        public static void method(Outer out){
            System.out.println(num);
        }
    }
}
